#ifndef READFILE_H
#define READFILE_H

#include <QObject>

struct Tcp_Config
{
    QString serverIP;
    int serverPort;
};

class ReadFile : public QObject
{
    Q_OBJECT
public:
    static ReadFile* getIntance()
    {
        static ReadFile instance;
        return &instance;
    }

    QString readQssFile(QString filePath);
    Tcp_Config readTcpConfigFile(QString filePath);
    QByteArray readFile(QString filePath);

private:
    explicit ReadFile(QObject *parent = nullptr);

signals:
};

#endif // READFILE_H
